package com.Portal.controller;

import com.managerApi.pojo.GoodsCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/portal")
public class protalController {
@Autowired
    private com.managerApi.feign.managerFeign managerFeign;
@GetMapping("/findAll")
public String test(Model model){

    String goodsCategories = managerFeign.categoryList(model);
    return goodsCategories;
}
}
